FROM openjdk:17-jdk-alpine
RUN echo -e https://mirrors.ustc.edu.cn/alpine/v3.7/main/ > /etc/apk/repositories
RUN apk --no-cache add ttf-dejavu fontconfig
# /tmp 目录就会在运行时自动挂载为匿名卷，任何向 /tmp 中写入的信息都不会记录进容器存储层
VOLUME /tmp
# 时区修改
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \&& echo 'Asia/Shanghai' >/etc/timezone
ADD /*.jar //
ENTRYPOINT ["java", "-Dfile.encoding=utf-8", "-jar", "-Xms512m", "-Xmx512m", "-XX:MaxMetaspaceSize=256M", "-XX:MetaspaceSize=256M", "-Xss128M", "/settlement-system.jar"]


